<?php $this->load->view('admin/common/pageHead');?>
<?php $this->load->view('admin/common/pageHeader');?>
<div class="wth" style="margin-top: 80px;">
<div class="fLeft">
		<img alt="" src="/public/images/picture.jpg" width="135" height="127">
	</div>
	<div class="fRight"
		style="border: 1px #67B3E6 solid; padding: 5px 10px">
		<form action="adminloginnow" name="adminlogin" method="post"
			onsubmit="return check();">
			<div align="center">
				<input type="radio" value="superadmin" name="super"
					checked="checked" id="super" onchange="selectRadio(1)"> Super Admin
				<input type="radio" value="admin" name="admin" id="admin"
					onchange="selectRadio(2)"> Admin
			</div>
			<div style="margin: 10px 0 0 0; padding-left: 50px">
				<table width="300px" align="center" cellspacing="0" cellpadding="0">

					<tr>
						<td colspan="2">&nbsp;</td>
					</tr>
					<tr>
						<td class="txtSmall " height="40px">Username :</td>
						<td height="20px"><input type="text" value="" name="username"
							class="text-field " id="username" /></td>
					</tr>
					<tr>
						<td class="txtSmall " height="40px">Password :</td>
						<td height="20px"><input type="password" value="" name="password"
							class="text-field " id="password" /></td>
					</tr>
					<tr>
						<td colspan="2" align="center" height="40px"><input width="81"
							type="image" height="27" src="/public/images/login-button.jpg"
							name="submit" /></td>
					</tr>

					<tr>
						<td colspan="2">&nbsp;</td>
					</tr>
				</table>
			</div>
		</form>
	</div>
</div>
<script language="javascript">
  function check()
  {

	  if(document.getElementById('username').value=='')
	 {
		 alert("Please Enter User Name" );
		 document.getElementById('artistID').focus();
		 return false;
		 }
		if(document.getElementById('password').value=='')
		 {
		 alert("Please Enter Password" );
		 document.getElementById('categoryID').focus();
		 return false;
		 }
  }
  
  function selectRadio(x)
  {
      if(x==1){
          document.getElementById("admin").checked='';
          document.getElementById("super").checked='checked';
      }
      if(x==2){
          document.getElementById("admin").checked='checked';
          document.getElementById("super").checked='';
      }
  }
  </script>
<div class="clr h15"></div>
<?php $this->load->view('admin/common/pageFooter');?>
